import asunit.framework.TestCase;
import com.lbi.helpers.view.ColourHelper;

/**
 * @author michaelforrest
 */
class helpers.ColourHelperTest extends TestCase {
	
	public function ColourHelperTest(testMethod : String) {
		super(testMethod);
	}
	function testInterpolation( ) :Void{
		var start_colour : Number = 0xFF0088;
		var end_colour : Number = 0x000000;
		var expected_halfway : Number = 0x880044;
		var actual_halfway : Number  =ColourHelper.interpolate(start_colour,end_colour,0.5);
		assertEquals("expected " + expected_halfway.toString(16) +", result was " + actual_halfway.toString(16)  
					,expected_halfway,actual_halfway);
		
	}

}